/*
 * @Author: chen haoxuan
 * @Date: 2021-06-28 21:06:44
 * @LastEditTime: 2021-06-28 21:12:42
 */
#include<iostream>
using namespace std;
class Base
{
  public:
    Base(int x=0):valB(x){cout<<valB;};
    ~Base(){cout<<valB;}
  private:
    int valB;
};
class Derived:public Base
{
  public:
    Derived(int x=0,int y=0):Base(x),valD(y){cout<<valD;}
    ~Derived(){cout<<valD;}
  private:
    int valD;
};
int main()
{
  Derived obj(2,3);
  return 0;

}